﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BaopxFramework.DAL
{
    public partial class Repository :IDisposable
    {
        protected DALDataContext d;

        public Repository()
        {
            d = new DALDataContext();
        }

        private void Update()
        {
            d.SubmitChanges();
        }

        public void Dispose()
        {
            d.Dispose();
        }
    }
}
